Optimal. Leaf size=124 \[ \frac {7 \tanh ^{-1}(\cos (c+d x))}{16 a^3 d}+\frac {4 \cot ^3(c+d x)}{3 a^3 d}+\frac {3 \cot ^5(c+d x)}{5 a^3 d}+\frac {7 \cot (c+d x) \csc (c+d x)}{16 a^3 d}-\frac {17 \cot (c+d x) \csc ^3(c+d x)}{24 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps
used = 15, number of rules used = 8, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.296, Rules used = {2954, 2952,
2687, 30, 2691, 3853, 3855, 14} \begin {gather*} \frac {3 \cot ^5(c+d x)}{5 a^3 d}+\frac {4 \cot ^3(c+d x)}{3 a^3 d}+\frac {7 \tanh ^{-1}(\cos (c+d x))}{16 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d}-\frac {17 \cot (c+d x) \csc ^3(c+d x)}{24 a^3 d}+\frac {7 \cot (c+d x) \csc (c+d x)}{16 a^3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2687
Rule 2691
Rule 2952
Rule 2954
Rule 3853
Rule 3855
Rubi steps
\begin {align*} \int \frac {\cos (c+d x) \cot ^7(c+d x)}{(a+a \sin (c+d x))^3} \, dx &=\frac {\int \cot ^2(c+d x) \csc ^5(c+d x) (a-a \sin (c+d x))^3 \, dx}{a^6}\\ &=\frac {\int \left (-a^3 \cot ^2(c+d x) \csc ^2(c+d x)+3 a^3 \cot ^2(c+d x) \csc ^3(c+d x)-3 a^3 \cot ^2(c+d x) \csc ^4(c+d x)+a^3 \cot ^2(c+d x) \csc ^5(c+d x)\right ) \, dx}{a^6}\\ &=-\frac {\int \cot ^2(c+d x) \csc ^2(c+d x) \, dx}{a^3}+\frac {\int \cot ^2(c+d x) \csc ^5(c+d x) \, dx}{a^3}+\frac {3 \int \cot ^2(c+d x) \csc ^3(c+d x) \, dx}{a^3}-\frac {3 \int \cot ^2(c+d x) \csc ^4(c+d x) \, dx}{a^3}\\ &=-\frac {3 \cot (c+d x) \csc ^3(c+d x)}{4 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d}-\frac {\int \csc ^5(c+d x) \, dx}{6 a^3}-\frac {3 \int \csc ^3(c+d x) \, dx}{4 a^3}-\frac {\text {Subst}\left (\int x^2 \, dx,x,-\cot (c+d x)\right )}{a^3 d}-\frac {3 \text {Subst}\left (\int x^2 \left (1+x^2\right ) \, dx,x,-\cot (c+d x)\right )}{a^3 d}\\ &=\frac {\cot ^3(c+d x)}{3 a^3 d}+\frac {3 \cot (c+d x) \csc (c+d x)}{8 a^3 d}-\frac {17 \cot (c+d x) \csc ^3(c+d x)}{24 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d}-\frac {\int \csc ^3(c+d x) \, dx}{8 a^3}-\frac {3 \int \csc (c+d x) \, dx}{8 a^3}-\frac {3 \text {Subst}\left (\int \left (x^2+x^4\right ) \, dx,x,-\cot (c+d x)\right )}{a^3 d}\\ &=\frac {3 \tanh ^{-1}(\cos (c+d x))}{8 a^3 d}+\frac {4 \cot ^3(c+d x)}{3 a^3 d}+\frac {3 \cot ^5(c+d x)}{5 a^3 d}+\frac {7 \cot (c+d x) \csc (c+d x)}{16 a^3 d}-\frac {17 \cot (c+d x) \csc ^3(c+d x)}{24 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d}-\frac {\int \csc (c+d x) \, dx}{16 a^3}\\ &=\frac {7 \tanh ^{-1}(\cos (c+d x))}{16 a^3 d}+\frac {4 \cot ^3(c+d x)}{3 a^3 d}+\frac {3 \cot ^5(c+d x)}{5 a^3 d}+\frac {7 \cot (c+d x) \csc (c+d x)}{16 a^3 d}-\frac {17 \cot (c+d x) \csc ^3(c+d x)}{24 a^3 d}-\frac {\cot (c+d x) \csc ^5(c+d x)}{6 a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.75, size = 242, normalized size = 1.95 \begin {gather*} \frac {\left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^6 \left (-704 \cot \left (\frac {1}{2} (c+d x)\right )+210 \csc ^2\left (\frac {1}{2} (c+d x)\right )+840 \log \left (\cos \left (\frac {1}{2} (c+d x)\right )\right )-840 \log \left (\sin \left (\frac {1}{2} (c+d x)\right )\right )-210 \sec ^2\left (\frac {1}{2} (c+d x)\right )+90 \sec ^4\left (\frac {1}{2} (c+d x)\right )+5 \sec ^6\left (\frac {1}{2} (c+d x)\right )-544 \csc ^3(c+d x) \sin ^4\left (\frac {1}{2} (c+d x)\right )+\csc ^6\left (\frac {1}{2} (c+d x)\right ) (-5+18 \sin (c+d x))+\csc ^4\left (\frac {1}{2} (c+d x)\right ) (-90+34 \sin (c+d x))+704 \tan \left (\frac {1}{2} (c+d x)\right )-36 \sec ^4\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{1920 a^3 d (1+\sin (c+d x))^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.33, size = 176, normalized size = 1.42
method | result | size |
derivativedivides | \(\frac {\frac {\left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6}-\frac {6 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {7 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-\frac {14 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}+20 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{6 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}-\frac {20}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {7}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}-28 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {14}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\frac {6}{5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}}{64 d \,a^{3}}\) | \(176\) |
default | \(\frac {\frac {\left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{6}-\frac {6 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5}+\frac {7 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}-\frac {14 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-\frac {\left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2}+20 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-\frac {1}{6 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{6}}-\frac {20}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {7}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{4}}-28 \ln \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {14}{3 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}+\frac {1}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{2}}+\frac {6}{5 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )^{5}}}{64 d \,a^{3}}\) | \(176\) |
risch | \(-\frac {240 i {\mathrm e}^{10 i \left (d x +c \right )}+105 \,{\mathrm e}^{11 i \left (d x +c \right )}-2160 i {\mathrm e}^{8 i \left (d x +c \right )}+365 \,{\mathrm e}^{9 i \left (d x +c \right )}+1760 i {\mathrm e}^{6 i \left (d x +c \right )}-1110 \,{\mathrm e}^{7 i \left (d x +c \right )}-480 i {\mathrm e}^{4 i \left (d x +c \right )}-1110 \,{\mathrm e}^{5 i \left (d x +c \right )}+816 i {\mathrm e}^{2 i \left (d x +c \right )}+365 \,{\mathrm e}^{3 i \left (d x +c \right )}-176 i+105 \,{\mathrm e}^{i \left (d x +c \right )}}{120 d \,a^{3} \left ({\mathrm e}^{2 i \left (d x +c \right )}-1\right )^{6}}-\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-1\right )}{16 d \,a^{3}}+\frac {7 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+1\right )}{16 d \,a^{3}}\) | \(192\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 274 vs.
\(2 (112) = 224\).
time = 0.28, size = 274, normalized size = 2.21 \begin {gather*} \frac {\frac {\frac {600 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {15 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {140 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {105 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {36 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {5 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}}}{a^{3}} - \frac {840 \, \log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}} + \frac {{\left (\frac {36 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {105 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {140 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {15 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {600 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} - 5\right )} {\left (\cos \left (d x + c\right ) + 1\right )}^{6}}{a^{3} \sin \left (d x + c\right )^{6}}}{1920 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.45, size = 196, normalized size = 1.58 \begin {gather*} -\frac {210 \, \cos \left (d x + c\right )^{5} - 80 \, \cos \left (d x + c\right )^{3} - 105 \, {\left (\cos \left (d x + c\right )^{6} - 3 \, \cos \left (d x + c\right )^{4} + 3 \, \cos \left (d x + c\right )^{2} - 1\right )} \log \left (\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) + 105 \, {\left (\cos \left (d x + c\right )^{6} - 3 \, \cos \left (d x + c\right )^{4} + 3 \, \cos \left (d x + c\right )^{2} - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (d x + c\right ) + \frac {1}{2}\right ) - 32 \, {\left (11 \, \cos \left (d x + c\right )^{5} - 20 \, \cos \left (d x + c\right )^{3}\right )} \sin \left (d x + c\right ) - 210 \, \cos \left (d x + c\right )}{480 \, {\left (a^{3} d \cos \left (d x + c\right )^{6} - 3 \, a^{3} d \cos \left (d x + c\right )^{4} + 3 \, a^{3} d \cos \left (d x + c\right )^{2} - a^{3} d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.54, size = 216, normalized size = 1.74 \begin {gather*} -\frac {\frac {840 \, \log \left ({\left | \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{3}} - \frac {2058 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 600 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 15 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 140 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 105 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 36 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 5}{a^{3} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6}} - \frac {5 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} - 36 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 105 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 140 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 15 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 600 \, a^{15} \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a^{18}}}{1920 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.18, size = 339, normalized size = 2.73 \begin {gather*} -\frac {5\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}+36\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}-36\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-105\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}+140\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9+15\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8-600\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7+600\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5-15\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4-140\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+105\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+840\,\ln \left (\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}\right )\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{1920\,a^3\,d\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6\,{\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________